#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
 : QWidget(parent)
 , ui(new Ui::Widget)
{
 ui->setupUi(this);
// connect(&t,&TimeThread::sendTime,this,&Widget::showTime);
  thread1=new TimeThread(this);
  thread2=new TimeThread(this);
  this->thread1->start();
  this->thread2->start();

}
Widget::~Widget()
{
 delete ui;
}

void Widget::showTime(QString Time)
{
 ui->label->setText(Time);
}

void Widget::on_pushButton_clicked()
{

}
